package colbert.content.genericFunction;

import colbert.content.genericInterface.Student;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {

        String[] strs = new String[]{"a","b","c"};

        print(strs);
        ArrayList<Student> students = new ArrayList<>();
        ArrayList<String> names = new ArrayList<>();
        printArr(names);
//        printArr(students);
    }

    //集合使用泛型?
    public static void printArr(ArrayList<? extends String> names) {

    }

    // 定义泛型
    public static <T> void print(T[] names) {

    }
}
